
export const getters = {
  token: (state) => state.access_token,//获取token
  expries: (state) => state.expires_in,//获取时间
  keyNo: (state) => state.keySerialNo,//获取时间
  pubilc: (state) => state.publicKey,//获取时间
  busId: (state) => state.busbaseId,//获取时间
  adminId: (state) => state.adminId,//获取时间
  shopName: (state) => state.shopName,//获取时间
  userName: (state) => state.userName,//获取时间
  userStatus:(state,user)=>{
    if(user){
      state.currentUser=user
      state.isLogin=true
    }else if(user==null){
      //登出的时候，清空所有东西
      state.currentUser=null;
      state.isLogin=false;
      state.access_token='';
    }
  }
}
